package com.redis.sentinel;

import redis.clients.jedis.Jedis;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author lzy
 * @date 2020-09-19 下午1:07
 */
public class SentinelTest {
    public static void main(String[] args) {
        Jedis jedis = null;
        try {
            jedis = SentinelJedisPool.getJedis();
            jedis.set("sentinel", "hello sentinel");
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            if (jedis != null) {
                jedis.close();
            }
        }
    }
}
